<?php

/*---------------------------------------------------------------------------*
 * Creatic : Post Type Configuration
 *---------------------------------------------------------------------------*/

/* Portfolio Post Type
/*-------------------------------------------------------------------------- */

if(FeatherTheme::get_option('theme_portfolio')) {

	// Slug
	$slug = FeatherTheme::get_option('theme_portfolio_rewrite_type');

	// Rewrite
	if($slug) {
		$rewrite = array(
			'slug' 		 => $slug,
			'with_front' => FALSE
		);
	}

	// Post Type
	$type['portfolio'] = array(
		'labels'		=> array(
			'name'			=> __('Portfolio','creatic'),
			'add_new_item'	=> __('Add New Item','creatic'),
			'edit_item'		=> __('Edit Item','creatic'),
			'view_item'		=> __('View Item','creatic'),
			'search_items'	=> __('Search Items','creatic'),
			'not_found'		=> __('No Items Found','creatic')
		),
		'public'		=> TRUE,
		'has_archive'	=> TRUE,
		'supports'		=> array('title','editor','excerpt','author','thumbnail'),
		'rewrite'		=> isset($rewrite)?$rewrite:FALSE,
		'menu_position'	=> 5,
		'taxonomies'	=> array('portfolio_category')
	);

}